<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<jsp:include page="/public/public.jsp"/>
</head>
<body>
<jsp:include page="/public/head.jsp"/>  
    <div class="wrapper clearfix">
    <jsp:include page="/public/left.jsp"/>  
	<div class="main">
<s:form name="usr" action="roleSaveAction!save.action" namespace="/role">
<table class="advert-tab" cellspacing="0">
<tr class="advert-th">
		<th colspan="6">
			添加/修改角色基本信息
		</th>
	</tr>
	<tr>
		<td >角色名称</td>
		<td ><input type="text" name="roleName" value="${roleName }"/></td>
		<td >角色描述</td>
		<td ><input type="text" name="roleDesc" value="${roleDesc }"/></td>
		<!-- 
		<td >创建者ID</td>
		<td	> <input type="text" name="createUserId" value="${createUserId }"/></td>
	</tr>
	<tr>
		<td >创建日期</td>
		<td ><input type="text" name="createDate" value="${createDate }"/></td>
		<td >最后更新日期</td>
		<td ><input type="text" name="updateDate" value="${updateDate }"/></td>
		-->
			<td colspan=2>
		<input type="submit" value="保存"/><input type="reset" value="重置"/>
<input type="button" onclick="location.href='/OpenAuthWebApplication/role/loadResourceAction!loadResources.action?roleId=<s:property value="#request.curRole.roleId" />'" value="修改角色资源"/>
<input type="button" onclick="location.href='/OpenAuthWebApplication/role/loadRoleAction!loadActions.action?roleId=<s:property value="#request.curRole.roleId" />'" value="修改角色权限"/>
<input type="button" onclick="location.href='/OpenAuthWebApplication/role/loadMenuAction!loadMenus.action?roleId=<s:property value="#request.curRole.roleId" />'" value="修改角色菜单"/>
		
		<input type="reset" value="返回" onclick="location.href='/OpenAuthWebApplication/role/roleAction.action'"/>
		<input type="hidden" value="${userId }" name="userId"/>&nbsp;
		<input type="hidden" value="${oper }" name="oper"/>
	</td>
	</tr>
	<tr>
		<td colspan=6>
			区域：
			<s:set value="#request.roleId" name="curRoleId"/> 
			<select name="areaId">
			
					<s:iterator  value="#request.areaList" id="areaList" status="areaLists">
				
					<option
					 value="<s:property value="#areaList.areaId" />"><s:property value="#areaList.areaName" /></option>
						
					</s:iterator>
			</select>
		</td>
	</tr>
</table>
</s:form>
</div>
</div>
<%@ include file="/public/footer.jsp"%>
</body>
</html>